home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3551 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: sundog.tiac.net!usenet
  2. From: Darius Taghavy <dart@ycrdi.com>
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: MsgPorts and lists
  5. Date: 20 Feb 1996 19:55:04 GMT
  6. Organization: Young Chang R&D Institute
  7. Message-ID: <4gd8uo$btm@sundog.tiac.net>
  8. References: <1527.6618T48T2102@amiga.pp.se>
  9. NNTP-Posting-Host: gatekeep.ycrdi.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1N (Macintosh; I; PPC)
  14. X-URL: news:1527.6618T48T2102@amiga.pp.se
  15.  
  16. mikael.berglund@amiga.pp.se (Mikael Berglund) wrote:
  17. >In a project i am currently working with i have one port that serves many
  18. >supporting windows. The main message handler GT_GetIMsg() and decide which
  19. >of the windows this message belongs to and calls the appropriate handler.
  20.  
  21. fine
  22.  
  23. >This handler keeps popping messages until it stumbles upon a message that
  24. >does not concern this handler. It then returns this message to the main
  25. >handler which dispatches it to the right handler.
  26.  
  27. Why?
  28. [ complicated stuff deleted]
  29.  
  30. >Or is they way i solved it now, shuffling pointers to messages between the
  31. >handlers around the optimal solution? (And safest :D)
  32.  
  33. Better solution: Walk the list in the main handler.
  34.  
  35. Best Regards,
  36. Darius
  37.  
  38.  
  39.